package com.diligreat.servlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.diligreat.service.NavigationService;

public class OnStartupServlet extends HttpServlet{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7524569638919218438L;

	public void init(ServletConfig config) throws ServletException {
		
		WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext());
		NavigationService navigationService=(NavigationService)wac.getBean("navigationService");
		
		
		navigationService.getNavigationString();
	}

}
